package lumis.portal.group.serialization;

import lumis.portal.serialization.SerializationMessageConfig;

/**
 * Information about a group to be used in serialization progress messages
 *
 * @version $Revision: 7037 $ $Date: 2007-05-25 22:53:02 -0300 (Fri, 25 May 2007) $
 * @since 4.0.7
 */
public class GroupSerializationMessageConfig extends SerializationMessageConfig
{
	private String name;
	private boolean globalPrincipal;

	public GroupSerializationMessageConfig()
	{
		super();
		type = "STR_GROUP";
	}
	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}
	
	public void setGlobal(boolean global)
	{
		globalPrincipal = global;
		if (global)
			type = "STR_GLOBAL_GROUP";
		else
			type = "STR_LOCAL_GROUP";
	}

	public boolean isGlobalPrincipal()
	{
		return globalPrincipal;
	}
}